package consumer.example.consumer;

import com.alibaba.dubbo.config.annotation.Reference;
import common.example.commonapi.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class TestMq {

    @Reference
    public StudentService studentService;
    @RequestMapping("/say")
    public String say(){
        int i = studentService.queryAllStudentCount();
        return "Hello World 学生人数是" + ":" + String.valueOf(i);
    }
}
